package com.ryder.petmatediarybackend.module.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 描述：更新用户信息 DTO
 *
 * @author Ryder
 * @version 1.0
 * @since 1.0
 * 更新日期: 2025-10-31
 */
@Data
@Schema(description = "更新用户信息DTO")
public class UpdateProfileDTO {

    @Schema(description = "昵称", example = "Ryder")
    @Size(min = 2, max = 50, message = "昵称长度必须在2-50个字符之间")
    private String nickname;

    @Schema(description = "邮箱", example = "ran.yucheng@outlook.com")
    @Email(message = "邮箱格式不正确")
    private String email;

    @Schema(description = "手机号", example = "15023264826")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    @Schema(description = "个人简介", example = "热爱宠物，喜欢分享生活")
    @Size(max = 500, message = "个人简介不能超过500个字符")
    private String bio;

    @Schema(description = "性别：1=男 2=女 3=其他", example = "1")
    private Integer gender;

    @Schema(description = "出生日期", example = "2000-01-01")
    private Date birthday;

    @Schema(description = "兴趣爱好列表", example = "[\"摄影\", \"旅行\", \"美食\"]")
    private List<String> hobbies;

    @Schema(description = "个性化标签列表", example = "[\"猫奴\", \"铲屎官\"]")
    private List<String> tags;
}

